package org.warehouse.entity;

public class Product implements IEntity {
	private final Integer id;

	private final String name;

	private final Integer price;

	private final Integer groupId;

	public Product(String name, Integer price, Integer groupId) {
		this(null, name, price, groupId);
	}

	public Product(Integer id, String name, Integer price, Integer groupId) {
		this.id = id;
		this.name = name;
		this.price = price;
		this.groupId = groupId;
	}

	@Override
	public Integer getId() {
		return id;
	}

	public String getName() {
		return name;
	}

	public Integer getPrice() {
		return price;
	}

	public Integer getGroupId() {
		return groupId;
	}

}
